pp108 : CWS Command-line Tool - CWSBuild

CWS Command-line Tool - CWSBuild

This topic describes the CWS command-line tool called CWSBuild.

The command-line tool CWSBuild can be used to build a Collaborative Workspace (CWS) document that resides in a development workspace. Running this tool for a single document, folder, or project has the same result as validating the same document from the browser using the context menu item Validate.

For general instructions on how to use CWS command-line tools, refer to Using the CWS Command-line Tools.

The command-line tool CWSBuild accepts three parameters:

CWSBuild <ORGANIZATION_NAME> <WORKSPACE_NAME> <DOCUMENT_NAME>

where,

  • <ORGANIZATION_NAME> is the name of the organization in which the document resides,
  • <WORKSPACE_NAME> is the name of the workspace in which the document resides,
  • <DOCUMENT_NAME> is the name of the document in terms of its path in the workspace.

For example, if your organization is called 'MyOrganization', and you have a workspace called 'MyWorkspace', and that workspace contains a document with the path 'MyApplication/Roles/MyRole', building the document can be done using the following command:

CWSBuild MyOrganization MyWorkspace MyApplication/Roles/MyRole

Note: In cases where any of the parameters contain white space characters, you must include them in double quotes as shown below:

CWSBuild "My Organization" "My Workspace" "My Application/Roles/My Role"